planetOzh
planetOzh ‐ a virtual .postcard from $me to myself();
Code 2003/12/20 1 min read

Top 5 processes

By Ozh

This line displays top 5 processes, sorted by CPU usage.

< View plain text >
code

  1. echo "  PID USER     %CPU COMMAND" &&  ps -eo pid,user,pcpu,args --sort pcpu | tail -n 5 | sort -r
BashCodeLinux
← PreviousDont ban me.
Next →Résumé de la loi Fontaine
Ozh : WordPress published author, maker of YOURLS, wine enthusiast and a metal head. Read more about me.

This post

Written on 2003 / December / 20 (22 years , 5 months and 6 days ago) Last updated: 2007/05/09 (19 years , 1 month and 6 days ago)

Recent Posts

Open PHP files in the right editor, automatically.
Linux 2026/05/30
YOURLS now speaks PostgreSQL
YOURLS 2026/05/17
The most beautiful song known to man
Music 2026/05/13
Linux productivity
Shorties 2026/05/05
Reboot
Shorties 2026/05/03

Topics

Shorties Web WordPress My Life Code Plugins Ahah Images PHP Cult Google planetOzh Stats Blogostuff Software sux0rz Spam CSS RSS Tips Linux Wordpress Theme Music WTF Useless Ego Javascript Review GMail Twitter

Subscribe

RSS feed
planetOzh p l a n e t
🄯 Ozh 2000 - 2026
About Archives RSS @ozh@Github@ozh@Mastodonozh.org